from ftllibs.items.itemtools import ItemIconData

class Item_3178():
    def __init__(self):
        self.parent=False
        self.Name="Ionic Spark"
        self.IconFileName="3178.png"
        self.ID=3178
        self.Stack=0
        self.MaxStack=0
        self.Built_From=['1043','1028']
        self.Builds_Into=[]
        self.Tags=['health','attack_speed']
        self.Costs = 775
        self.Total_Costs = 2300
        self.Description="+50% Attack Speed +250 Health  UNIQUE Passive: Every fourth basic attack unleashes a chain lightning, dealing 110 magic damage to up to 4 targets."
        self.RichText_Description=""
        self.has_active=False
        self.has_passive=True
        self.IconData=ItemIconData(self.IconFileName)
        self.Availability=["all"]
        self.Custom()

    def UpdateStats(self):
        self.parent.Attack_Speed_Percentage += 50.0
        # above is %
        self.parent.Health += 250.0
        self.UpdateStats_Custom()


    def Custom(self):
        pass

    def UpdateStats_Custom(self):
        pass

